<!-- 原版 -->
<!doctype html>
<html class="no-js">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="description" content="">
  <meta name="keywords" content="">
  <meta name="viewport"
        content="width=device-width, initial-scale=1">
  <title>返回失败图片页面</title>

  <!-- Set render engine for 360 browser -->
  <meta name="renderer" content="webkit">

  <!-- No Baidu Siteapp-->
  <meta http-equiv="Cache-Control" content="no-siteapp"/>

  <link rel="icon" type="image/png" href="images/bee.png">

  <!-- Add to homescreen for Chrome on Android -->
  <meta name="mobile-web-app-capable" content="yes">
  <!-- <link rel="icon" sizes="192x192" href="assets/i/app-icon72x72@2x.png"> -->

  <!-- Add to homescreen for Safari on iOS -->
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black">
  <meta name="apple-mobile-web-app-title" content="Amaze UI"/>
  <!-- <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png"> -->

  <!-- Tile icon for Win8 (144x144 + tile color) -->
  <meta name="msapplication-TileImage" content="assets/i/app-icon72x72@2x.png">
  <meta name="msapplication-TileColor" content="#0e90d2">

  <link rel="stylesheet" href="assets/css/amazeui.min.css">
  <link rel="stylesheet" href="assets/css/app.css">
  <script src="../../routes/vue.js"></script>
</head>
<body style="background: url(images/bg1.png) no-repeat;background-size: cover; background-attachment:fixed;">
<!--在这里编写你的代码-->
  <!-- 页头 -->
  <header data-am-widget="header"
  class="am-header am-header-default" style="background-color: #F6B541;">
  <div class="am-header-left am-header-nav">
  <!-- <a href="#left-link">
      <span class="am-header-nav-title">
        首页
      </span>
  
        <i class="am-header-icon am-icon-home"></i>
  </a> -->
  <ul>
    <a href="yfpage.html">
      <li style="display: flex;flex-direction: row;width: 200px;">
          <img src="images/shouye.png" alt="管理员联系方式" style="width: 150px; height: 22px;margin-top: 10px; margin-left: -10%;">
          <!-- <p style="color: #000; margin-top: 0;font-size: 16px;">小蜜蜂图片收集网</p> -->
      </li>
    </a>
  </ul>
  </div>


  <div class="am-header-right am-header-nav">
    <a href="jobfachu.html">
      <div style="display: flex;flex-direction: column;margin-left: -40px;">
        <img src="images/rw.png" alt="管理员联系方式" style="width: 30px; height: 25px;">
        <span style="color: black; font-weight: 700; font-size: 12px;margin-left: -48px; margin-top: -14px;" onclick="rw()">任务</span>
      </div>
    </a>
    <a href="personal.html">
      <div style="display: flex;flex-direction: column;margin-left: -10px;">
        <img src="images/xr.png" alt="管理员联系方式" style="width: 25px; height: 20px;">
        <span style="color: black; font-weight: 700; font-size: 12px;margin-left: -18px; margin-top: -14px;" onclick="per()">我的</span>
      </div>
    </a>
  </div>
  </header>

  <div class="am-container" style="background-color: rgba(241, 246, 249, 0.65); margin-top: 60px; 
   box-shadow: 5px 5px 5px rgba(0,0,0,0.1); 
  border-radius: 5px; ">
       <div class="am-g am-g-fixed" style="margin-top: 3vh;">
            <div class="am-u-sm-3" style="height: 30px; font-size:large; font-family: SimHei; font-weight: 700;">
                <label style="background-color: #fff;">上传照片总数量：</label>
                <label id="total" style="background-color: #fff;"></label>
            </div>
            <div class="am-u-sm-3" style="height: 30px; font-size:large; font-family: SimHei; font-weight: 700;">
                <label style="background-color: #fff;">成功上传数量：</label>
                <label id="success" style="background-color: #fff;"></label>
            </div>
            <div class="am-u-sm-3" style="height: 30px; font-size:large; font-family: SimHei; font-weight: 700;">
                <label style="background-color: #fff;">收入：</label>
                <label id="money" style="background-color: #fff;"></label>
            </div>
            <div class="am-u-sm-3" style="height: 30px; font-size:large; font-family: SimHei; font-weight: 700;">
                <label style="background-color: #fff;">上传失败数量：</label>
                <label id="fail" style="background-color: #fff;"></label>
            </div>
       </div>

          <div class="am-g am-g-fixed" style="margin-top: 3vh;margin-bottom: 3vh;">
            <div class="am-u-sm-5" style="height: 30px; font-size:large; font-family: SimHei; font-weight: 700;">
                上传失败图片展示<img src="images/xia.png" style="width: 25px;height:25px;">
                <!-- <button type="button" class="am-btn am-btn-primary am-round" style="background-color: #75C3B6;
                            width:6vw;height:3vh;font-size: xx-small;">全部采用</button> -->
            </div>
          </div>
        
      <div id="picture">
        <ul data-am-widget="gallery" class="am-gallery am-avg-sm-3
        am-avg-md-3 am-avg-lg-4 am-gallery-default" data-am-gallery="{ pureview: true }" id="picturelist">
        <li style="margin-bottom:20px;" v-for="(item ,i) in list">
          <div class="am-gallery-item" style="height: 126.4px;line-height: 126.4px; width: 230.4px; text-align: center;">
              <a>
                <img v-bind:src="item" style="max-width:100%;max-height:100%;width:auto;height:auto; vertical-align: bottom;" >
              </a>
          </div>
        </li>
        </ul>
      </div>
      
          

          <div class="am-g am-g-fixed" style="margin-top: 5vh;margin-bottom: 8vh;text-align: center;align-items: center;">
            <div class="am-u-sm-8 am-u-sm-centered" style="height: 20px; font-size:large;text-align: center;align-items: center;">
              <button type="button" onclick="return1()" class="am-btn am-btn-danger am-round" style="background-color: #E87B17; width: 300px; margin-left: 2vw;outline: 0;">确定并返回</button>
            </div>
          </div>
</div>

<div class="am-modal am-modal-confirm" id="my-confirm">
  <div class="am-modal-dialog">
    <div class="am-modal-hd">收款界面</div>
    <div class="am-modal-bd" id="money11"></div>
    <div class="am-modal-footer">
      <span class="am-modal-btn" id="publishBtn" data-am-modal-confirm>收款</span>
    </div>
  </div>
</div>
  

<!-- 页脚 -->
<footer data-am-widget="footer"
class="am-footer am-footer-default"
 data-am-footer="{  }" style="background-color: rgba(255,255,255,0) ;">
<div class="am-footer-switch">
<span class="am-footer-ysp" data-rel="mobile"
data-am-modal="{target: '#am-switch-mode'}">
云适配版
</span>
<span class="am-footer-divider"> | </span>
<a id="godesktop" data-rel="desktop" class="am-footer-desktop" href="javascript:">
电脑版
</a>
</div>
<div class="am-footer-miscs ">

<p>由 <a href="http://www.yunshipei.com/" title="诺亚方舟"
                                      target="_blank">诺亚方舟</a>
  提供技术支持</p>
<p>CopyRight©2014  AllMobilize Inc.</p>
<p>京ICP备13033158</p>
<br>
<p>NaN团队--小蜜蜂图片收集网</p>
</div>
</footer>

<div id="am-footer-modal"
class="am-modal am-modal-no-btn am-switch-mode-m am-switch-mode-m-default">
<div class="am-modal-dialog">
<div class="am-modal-hd am-modal-footer-hd">
<a href="javascript:void(0)" data-dismiss="modal" class="am-close am-close-spin " data-am-modal-close>&times;</a>
</div>
<div class="am-modal-bd">
您正在浏览的是

<span class="am-switch-mode-owner">
  云适配
</span>

<span class="am-switch-mode-slogan">
    为您当前手机订制的移动网站。
</span>
</div>
</div>
</div>

 

<!--[if (gte IE 9)|!(IE)]><!-->
<!-- <script src="assets/js/jquery.min.js"></script> -->
<!--<![endif]-->
<!--[if lte IE 8 ]-->
<script src="http://libs.baidu.com/jquery/1.11.3/jquery.min.js"></script>
<script src="http://cdn.staticfile.org/modernizr/2.8.3/modernizr.js"></script>
<script src="assets/js/amazeui.ie8polyfill.min.js"></script>
<!--[endif]-->
<script src="assets/js/amazeui.min.js"></script>

<script>
     function return1()
  {
    var id = sessionStorage.getItem('id')
    window.location.href='./processjieshou.html?id='+id
    // window.history.back(-1);
  }
$picture=$('#picture');

  var vm = new Vue({
    el: '#picturelist',
    data: {
      list1:[],
      list3:[],
      list:[]
    },
    methods: {
        dd:function(){
            var strlist1  = sessionStorage.getItem('list1')
            var strlist3 = sessionStorage.getItem('list3')
            console.log(strlist1)
            console.log(strlist3)
            var list1xx = strlist1.split(',data:')
            vm.list3 = strlist3.split(',')
            console.log(list1xx)
            console.log(vm.list3)
            for(var i=0;i<list1xx.length-1;i++){
                vm.list1.push("data:"+list1xx[i+1])
                console.log(vm.list1[i])
            }
            vm.list1 = JSON.parse(JSON.stringify(vm.list1))
            console.log(vm.list1)
            vm.list=[]
            if(vm.list3!=''){
              for(var i=0;i<vm.list3.length;i++){
              vm.list.push(vm.list1[Number(vm.list3[i])])
              console.log(vm.list)
            }
            }
            else{
              $(function(){
                        $picture.append('<div style="align-items: center; text-align: center;opacity: 0.8;display: flex;flex-direction: column;">\
                                         <img src="images/loading.png" style="margin-top: 5vh;width:180px;height:180px;">\
                                         <label style="margin-top: 5vh;margin-bottom: 5vh; ">恭喜你，所有照片都上传成功！</label></div>')
                    })
            }
        }
    }
  })
  $btotal=$('#total');
  $bsuccess=$('#success');
  $bmoney=$('#money');
  $bfail=$('#fail')
  $(function(){$btotal.empty()
               $btotal.append(''+vm.list1.length+'张')})
  $(function(){$bsuccess.empty()
               $bsuccess.append(''+(vm.list1.length-vm.list.length)+'张')})
  $(function(){$bmoney.empty()
               $bmoney.append(''+parseFloat(((vm.list1.length-vm.list.length)*2)/10)+'元')})
  $(function(){$bfail.empty()
               $bfail.append(''+vm.list.length+'张')})


  vm.dd()

  window.onload=function(){
        $money=$('#money11')
        $(function(){$money.append('本次任务成功上传'+(vm.list1.length-vm.list.length)+'张，收入'+parseFloat(((vm.list1.length-vm.list.length)*2)/10)+'元')})
    $('#my-confirm').modal({
        relatedTarget: this,
        onConfirm: function() {
        }
  })
}
  
</script>
</body>
</html>